//
//  NormalView.m
//  test02
//
//  Created by lzh on 2020/10/24.
//  Copyright © 2020 NO. All rights reserved.
//

#import "NormalView.h"

@implementation NormalView

-(void)drawRect:(CGRect)rect{
    
    [[UIColor redColor]set];
    [[UIColor redColor]setStroke];
    [[UIColor redColor]setFill];
    
    UIBezierPath * path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(30, 30, 100, 100) cornerRadius:20];
    [path addClip];
    path.lineWidth = 2.0;
    path.lineCapStyle = kCGLineCapRound;
    path.lineJoinStyle = kCGLineJoinRound;
    [path fill];
    [path stroke];
    
    
    UIBezierPath * path1 = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(200, 130, 100, 100) cornerRadius:20];
    [path1 addClip];
    path1.lineWidth = 2.0;
    path1.lineCapStyle = kCGLineCapRound;
    path1.lineJoinStyle = kCGLineJoinRound;
    [path1 fill];
    [path1 stroke];
    
    
}

+(Class)layerClass{
    
    return CAShapeLayer.class;
}
@end
